import request from '@/utils/request'

// 查询数据分析列表
export function listTanalyze(query) {
  return request({
    url: '/contest/tanalyze/list',
    method: 'get',
    params: query
  })
}

// 查询数据分析详细
export function getTanalyze(analyzeId) {
  return request({
    url: '/contest/tanalyze/' + analyzeId,
    method: 'get'
  })
}

// 新增数据分析
export function addTanalyze(data) {
  return request({
    url: '/contest/tanalyze',
    method: 'post',
    data: data
  })
}

// 修改数据分析
export function updateTanalyze(data) {
  return request({
    url: '/contest/tanalyze',
    method: 'put',
    data: data
  })
}

// 删除数据分析
export function delTanalyze(analyzeId) {
  return request({
    url: '/contest/tanalyze/' + analyzeId,
    method: 'delete'
  })
}
